package com.it.docker.controller;

import com.it.docker.domain.School;
import com.it.docker.service.SchoolService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * projectName: my_docker
 *
 * @author: 王宝贵
 * time: 2024/9/4 15:25 周三
 * description:
 */

@RestController
public class SchoolController
{
    @Resource
    private SchoolService schoolService;

    @GetMapping(value = "/school/list")
    public List<School> findAllTbSchool() {
        return schoolService.list();
    }
}